package cz.gelion.shylock.invoice

import java.util.Calendar
import cz.gelion.shylock.invoice.entity.Manager
import javax.persistence.Transient
import org.apache.log4j.Logger

trait ManagedInfo extends Log {
 
  
  @transient
  val env = CurrentEnv
  
  var manager:Manager
  var mtime:Calendar
  
  
  def stamp = {
    log.trace("Wriging managed info")
    if (manager == null) manager = env._manager.value
    mtime = Calendar.getInstance();
  }
 

}